a = [1, 2, 3, 4, 5]


def list_while_func(list):
    index = 0
    while index < len(list):
        print(list[index])
        index += 1


print("while循环")
list_while_func(a)


def list_for_func(list):
    for x in list:
        print(x)


print("for循环")
list_for_func(a)
